import { combineReducers } from 'redux-immutable'; // combineReducers里的对象是一个immutable对象
import { reducer as headerReducer } from '../common/header/store';
import { reducer as homeReducer } from '../pages/home/store';
import { reducer as loginReducer } from '../pages/login/store';

// 把多个不同的子reducer整合成一个最终的reducer
const reducer = combineReducers({
    header: headerReducer,
    home: homeReducer,
    login: loginReducer,
});

export default reducer;
